/**
 * Sumpu Inc.
 * Copyright (c) 2011-2012 All Rights Reserved. 
 */
package cn.sumpu.app.guoguojie.dao;

import java.util.List;
import java.util.Map;

import cn.sumpu.app.guoguojie.domain.TaobaokeReport;
import cn.sumpu.app.guoguojie.exception.AppBusinessException;

/**
 * @author nick
 * @version $Id: TopDao.java, v 0.1 2012-8-20 下午03:17:52 nick Exp $
 */
public interface TopDao {
    /**
     * 更新淘宝客报表.
     * 
     * @param taobaokeReport
     * @throws AppBusinessException
     */
    void updateTaobaokeReport(TaobaokeReport taobaokeReport) throws AppBusinessException;

    /**
     * 插入淘宝客报表（单条）
     * 
     * @param taobaokeReport
     * @throws AppBusinessException
     */
    void insertTaobaokeReport(TaobaokeReport taobaokeReport) throws AppBusinessException;

    /**
     * author BruceZhang
     * 插入淘宝客报表（批量）
     * @param map   
     * @throws AppBusinessException
     */
    void insertTaobaokeReports(Map<String, Object> map) throws AppBusinessException;

    /**
     * 按条件统计淘宝客报表记录数.
     * 
     * @param map 统计条件
     * @return 淘宝客报表记录数
     * @throws AppBusinessException 统计失败
     */
    int countTaobaokeReportList(Map<String, Object> map) throws AppBusinessException;

    /**
     * 按条件检索淘宝客报表记录
     * 
     * @param map 检索条件
     * @return 淘宝客报表记录
     * @throws AppBusinessException 检索失败
     */
    List<TaobaokeReport> getTaobaokeReportList(Map<String, Object> map) throws AppBusinessException;
}
